package com.qingcheng.service.order;

import com.qingcheng.pojo.user.Address;

import java.util.List;
import java.util.Map;

public interface CartService {
    //查找购物车
    List<Map<String, Object>> findCartList(String userName);

    //添加商品到购物车
    void addItem(String userName, String skuId, Integer num);

    //更新勾选状态
    boolean updateChecked(String userName, String skuId, boolean checked);

    //删除选中商品
    void deleteCheckedCart(String userName);

    //计算当前选中购物车的优惠金额
    int preferential(String userName);

    //重新查找购物车
    List<Map<String, Object>> findNewCartList(String userName);

}
